package com.hy.service.impl;

import com.hy.bean.ReceiveApplyDetail;
import com.hy.dao.ReceiveApplyDetailDao;
import com.hy.dao.impl.ReceiveApplyDetailDaoImpl;
import com.hy.service.ReceiveApplyDetailService;

import java.util.List;
import java.util.Map;

public class ReceiveApplyDetailServiceImpl implements ReceiveApplyDetailService {
    private ReceiveApplyDetailDao receiveApplyDetailDao = new ReceiveApplyDetailDaoImpl();
    @Override
    public Boolean insert(ReceiveApplyDetail receiveApplyDetail) throws Exception {
        return receiveApplyDetailDao.insert(receiveApplyDetail);
    }

    @Override
    public List<Map<String, Object>> select(Integer id) throws Exception {
        return receiveApplyDetailDao.select(id);
    }

    @Override
    public Boolean update(ReceiveApplyDetail receiveApplyDetail) throws Exception {
        return receiveApplyDetailDao.update(receiveApplyDetail);
    }

    @Override
    public Boolean delete(String lymxid) throws Exception {
        return receiveApplyDetailDao.delete(lymxid);
    }

    @Override
    public List<Map<String, Object>> select(String status) throws Exception {
        return receiveApplyDetailDao.select(status);
    }
}
